package com.xplay.xpocker.room.voice;

import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Data
public class VoiceInfo {
    private String cmd;
    private Object msg;
    private BigDecimal currentUid;
    private BigDecimal remoteUid;
    private Set<BigDecimal> correlationUIds;

    /**
     * 添加关联用户
     * @param userId
     */

    public void addCorrelationUIds(BigDecimal userId) {
        if (correlationUIds == null) {
            correlationUIds = new HashSet<>();
        }
        correlationUIds.add(userId);
    }
}
